home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9455 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: axl.dialup.fu-berlin.DE!not-for-mail
  2. From: axl@zedat.fu-berlin.de (Axel Thimm)
  3. Newsgroups: gnu.g++.help,comp.lang.c++
  4. Subject: Streams and eof()
  5. Date: Fri, 01 Mar 1996 20:43:31 GMT
  6. Organization: FU Berlin, Fachbereich Physik, Institut fuer Theoretische Physik
  7. Message-ID: <4h7ni1$bi9@fu-berlin.de>
  8. Reply-To: axl@zedat.fu-berlin.de
  9. NNTP-Posting-Host: axl.dialup.fu-berlin.de (160.45.218.93)
  10. X-Access: 16 17 19
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. Hello,
  14.  
  15. I have had a look in the April draft, but I think that there is a small
  16. ambiguity about eof() methods in streams.
  17. Is the eof-flag raised, when the end of the stream is reached, or when
  18. an attempt to move past this end is made? I think the most common
  19. practice is the latter, but the ANSI draft uses the former statement.
  20. Declaring the end of a stream as the first charachter _after_ the last
  21. character of the stream would rescue the expression, but wouldn't fit
  22. into a concept of an end. (Usually one thinks of an end as belonging to
  23. the whole)
  24. As I am rather convinced, that the eof is raised at an attempt to meove
  25. past the end, I'd like to ask how to check this in a binary file without
  26. having to perform a movement.
  27.  
  28. Regards,
  29.     Axel.
  30. ===
  31. Axel Thimm <axl@zedat.fu-berlin.de>
  32. Freie Universitaet Berlin
  33. ===
  34.  
  35.